import Mock from 'mockjs';

export const loginData =()=>{
    let data = Mock.mock({
        name:"@cname",
        id:"123",
        "department|1":["田湾静机一部","田湾静机二部","田湾仪控部","田湾电气一部","田湾电气二部"],
        "station":"维修员",
        "class":"二班",
        "authorization":""
    });
    return {
        data:data,
        success:true,
        msg:null//cookie
    }
}

export const logout =(data)=>{
    console.log(data);
    return {
        data:false,
        success:true,
        msg:null
    }
}